import { legacy_createStore as createStore, combineReducers } from 'redux';

import tabReducer from './tabReducer/tabReducer'

const reducer = combineReducers({
	tabReducer
})

// 类型  = 获取reducer返回值类型
export type RootState =  ReturnType<typeof reducer>

const store = createStore(reducer)

export default store